package com.jiutong.meipengdai.http.model.requests;

import com.jiutong.meipengdai.http.RetrofitHandle;
import com.jiutong.meipengdai.http.SubscribeHandler;
import com.jiutong.meipengdai.http.model.services.GaodeMapService;
import com.jiutong.meipengdai.http.model.services.UserInfoService;

import java.util.Map;

import rx.Observable;
import rx.Subscriber;

/**
 * Created by suxi on 2017/5/31.
 */

public class GaodeMapRequest extends SubscribeHandler {
    /**
     * 获取地图坐标信息
     * @param subscriber
     * @param fields
     */
    public void loadMarker(Subscriber subscriber, Map<String, Object> fields) {

        fields.put("method", "pc.price.map");
        handleFields(fields);
        Observable observable = RetrofitHandle.getInstance().retrofit.create(GaodeMapService.class)
                .loadMarker(fields);
        toSubscribe(observable, subscriber);
    }


}
